package cn.org.authority.dao;

import cn.org.authority.bean.MyUser;
import cn.org.authority.comm.dao.CommMapper;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @ClassName UserMapper
 * @Author swj
 * @Date 2020/9/9 19:30
 */
@Mapper
public interface UserMapper extends CommMapper<MyUser> {
    /**
     * 通过用户名获取user对象
     * @return
     */
    @Select("select * from au_user where username = #{name}")
    MyUser getUserByName(String name);

}
